const path = require('path')

function resolve (dir) {
  return path.join(__dirname, dir)
}


module.exports = {
  publicPath: './',
  filenameHashing: false,
  productionSourceMap: false,
  chainWebpack: (config) => {
    config.resolve.alias.set("@", resolve('./src'))
  }
  // configureWebpack: config => {
  //   config.optimization = {
  //     splitChunks: {
  //       chunks: 'all',
  //       cacheGroups: {
  //         vue: {
  //           name: 'vue',
  //           test: /[\\/]node_modules[\\/]vue[\\/]/,
  //           priority: -10
  //         },
  //         'vendors': {
  //           name: 'vendors',
  //           test: /[\\/]node_modules[\\/]/,
  //           priority: -20
  //         }
  //       }
  //     }
  //   }
  // }
}